package com.atguigu.gulimall.member.service;

import com.atguigu.common.vo.SocialUser;
import com.atguigu.gulimall.member.exception.PhoneExistException;
import com.atguigu.gulimall.member.exception.UsernameExistException;
import com.atguigu.gulimall.member.vo.MemberLoginVo;
import com.atguigu.gulimall.member.vo.UserRegistVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.member.entity.MemberEntity;

import java.io.IOException;
import java.util.Map;

/**
 * 会员
 *
 * @author xuchuitan
 * @email xuchuitan@gmail.com
 * @date 2021-04-06 23:16:56
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(UserRegistVo user);

    void checkUserNameUnique(String username) throws UsernameExistException;

    void checkPhoneUnique(String phone) throws PhoneExistException;

    MemberEntity login(MemberLoginVo member);

    MemberEntity login(SocialUser socialUser);
}

